﻿<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8"> 
		<title>CN</title>
		<link rel="stylesheet" href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css">
		<style type="text/css">
			* {
				margin: 0px;
				padding:0px;
			}
			html,body {
				height: 100%;
				width: 100%;
			}
		</style>
		<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
		<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>
		<script src="http://unpkg.com/vue/dist/vue.js"></script>
	</head>
	<body>
		<nav class="navbar navbar-default navbar-fixed-top" role="navigation">
			<div class="container-fluid"> 
				<div class="navbar-header">
					<a class="navbar-brand" href="javascript:void(0);">CN</a>
				</div>
				<div>
					<ul class="nav navbar-nav">
						<li class="dropdown">
							<a href="javascript:void(0);" class="dropdown-toggle btn-lg" data-toggle="dropdown">
								<span class="glyphicon glyphicon-heart-empty"></span>
							</a>
							<ul class="dropdown-menu">
								<li><a href="https://www.oschina.net/">开源中国</a></li>
								<li><a href="http://www.jianshu.com/p/8e2f92d0838c">MyBatis Generator介绍</a></li>
								<li><a href="http://blog.csdn.net/baidu_18607183/article/details/51461657">Java读写注册表两种方式</a></li>
								<li><a href="http://www.jianshu.com/p/8e2f92d0838c">Spring + Spring MVC+Hibernate框架整合详细配置</a></li>
								<li><a href="http://www.mvnrepository.com/">Maven Repository: Search/Browse/Explore</a></li>
								<li><a href="http://search.maven.org/#search%7Cga%7C1%7C">The Central Repository Search Engine</a></li>
								<li><a href="http://blog.csdn.net/makyan/article/details/51782626">结合SpringMVC实现Velocity Layout功能</a></li>
								<li><a href="http://blog.csdn.net/cclovett/article/details/26377269">Windows下Nginx+Tomcat整合的安装与配置</a></li>
								<li><a href="https://github.com/pagehelper/Mybatis-PageHelper/blob/master/wikis/zh/HowToUse.md">Mybatis-PageHelper</a></li>
								<li><a href="http://blog.csdn.net/yang123111/article/details/32099329">获取Spring的上下文环境ApplicationContext的方式</a></li>
								<li><a href="http://baidufe.github.io/BaiduTemplate/">BaiduTemplate模板引擎</a></li>
								<li><a href="http://ibeetl.com/">Beetl 官网 - Beetl 最好的Java模板引擎 BeetlSQL 秒杀 MyBatis，赶超Hibernate的Java ORM工具</a></li>
								<li><a href="https://jenkins.io/index.html">Jenkins</a></li>
								<li><a href="http://www.runoob.com/vue2/vue-tutorial.html">Vue.js 教程 | 菜鸟教程</a></li>
								<li><a href="https://hexo.io/zh-cn/">Hexo</a></li>
							</ul>
						</li>
					</ul>
				</div>
				<div id="app">
					<form class="navbar-form navbar-left" role="search" v-bind:action="form_action" method="get" target="_blank">					
						<div class="row">
							<div>
								<div class="input-group">
									<div class="input-group-btn">
										<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
											<img v-bind:src="img_src">
											<span class="caret"></span>
										</button>
										<ul class="dropdown-menu pull-left" style="min-width: 74px;">
											<li v-on:click="change_engine('https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=4057308320,801662663&fm=58','https://www.baidu.com/s')">
												<a href="javascript:void(0);"><img src="https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=4057308320,801662663&fm=58"> Baidu</a>
											</li>
											<!-- <li class="divider"></li> -->
											<li class="disabled">
												<a href="javascript:void(0);"><img src="https://ss1.baidu.com/6ONXsjip0QIZ8tyhnq/it/u=4153316902,1694488568&fm=58"> Google</a>
											</li>
										</ul>
									</div>
									<input type="text" class="form-control" name="wd" id="kw" style="width:400px" autocomplete="off">
									<input type="hidden" name="rsv_spt" value="1">
									<input type="hidden" name="rsv_iqid" value="0xe217559b0000f41b">
									<input type="hidden" name="issp" value="1">
									<input type="hidden" name="f" value="8">
									<input type="hidden" name="rsv_bp" value="0">
									<input type="hidden" name="rsv_idx" value="2">
									<input type="hidden" name="ie" value="utf-8">
									<input type="hidden" name="rqlang" value="">
									<input type="hidden" name="tn" value="baiduhome_pg">
									<input type="hidden" name="rsv_enter" value="0">
									<span class="input-group-btn">
										<button class="btn btn-default" type="submit">Go</button>
									</span>
								</div>
							</div>
						</div>
					</form>
				</div>
			</div>
		</nav>
		<script>
			new Vue({
			  el: '#app',
			  data: {
				img_src: 'https://ss2.baidu.com/6ONYsjip0QIZ8tyhnq/it/u=4057308320,801662663&fm=58',
				form_action: 'https://www.baidu.com/s'
			  },
			  methods: {
				change_engine: function (img_src,form_action) {
				    this.img_src = img_src
					this.form_action = form_action
				}
			  }
			})
		</script>
	</body>
</html>